package com.ssh.action.petdiary;

import java.util.List;

import javax.annotation.Resource;

import org.springframework.context.annotation.Scope;
import org.springframework.stereotype.Controller;

import com.opensymphony.xwork2.ActionSupport;
import com.ssh.biz.IPetdiaryBiz;
import com.ssh.entity.Petdiary;
@Controller
@Scope("prototype")
public class ListPetdiaryAction extends ActionSupport{
	@Resource
	private IPetdiaryBiz iPetdiaryBiz;
	private List<Petdiary> petdiary;
	
	
	public String execute()throws Exception{
		petdiary = iPetdiaryBiz.findAllPetdiary();
		return "success";
		
	}
	
	
	public IPetdiaryBiz getiPetdiaryBiz() {
		return iPetdiaryBiz;
	}
	public void setiPetdiaryBiz(IPetdiaryBiz iPetdiaryBiz) {
		this.iPetdiaryBiz = iPetdiaryBiz;
	}
	public List<Petdiary> getPetdiary() {
		return petdiary;
	}
	public void setPetdiary(List<Petdiary> petdiary) {
		this.petdiary = petdiary;
	}
	
}
